xen.git
19 years agoReplace tab with 4 whitespaces in xm/shutdown.py.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 16:54:00 +0000 (16:54 +0000)]
Replace tab with 4 whitespaces in xm/shutdown.py.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agominios: Fix an extern declaration and add an extra 'const' to
kfraser@localhost.localdomain [Thu, 15 Mar 2007 15:27:08 +0000 (15:27 +0000)]
minios: Fix an extern declaration and add an extra 'const' to
definition of a constant set of constant error strings.
Issues identified by Armand Puccetti.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agonet back: Quieten loud error path.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 14:51:32 +0000 (14:51 +0000)]
net back: Quieten loud error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd two arch hooks to gnttab_release_mappings().
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:43:13 +0000 (10:43 +0000)]
Add two arch hooks to gnttab_release_mappings().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agox86: 32on64 oversight in update_va_mapping
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:38:58 +0000 (10:38 +0000)]
x86: 32on64 oversight in update_va_mapping
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agohvmloader: Simplify 32bit-bios relocator.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:38:06 +0000 (10:38 +0000)]
hvmloader: Simplify 32bit-bios relocator.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoTCGBIOS fixes and cleanups.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:36:10 +0000 (10:36 +0000)]
TCGBIOS fixes and cleanups.

- Add a missing break into the switch statement
- Simplify the code that switches from protected mode into real mode
  by letting it spill eax; this also fixes the case where the stack is
  above 0xffff.
- reformat the source for 80 columns
- remove some comments that were relevant when the TCG extensions were
  direct part of the real-mode Bochs BIOS

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoAdd boot option to allow console I/O to be placed into ring buffer
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:33:32 +0000 (10:33 +0000)]
Add boot option to allow console I/O to be placed into ring buffer

This option allows console I/O to be placed into the hypervisor
console ring buffer. When enabled, all output to the console
device will be reflected in the ring buffer.  When disabled (the
default), only hypervisor output is available from the ring buffer.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agoImplement xm domid and xm console using the Xen-API, and fix xm domname.
Ewan Mellor [Wed, 14 Mar 2007 23:26:33 +0000 (23:26 +0000)]
Implement xm domid and xm console using the Xen-API, and fix xm domname.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoAdded the clear flag to host.dmesg, and added host.get_log. Use these to
Ewan Mellor [Wed, 14 Mar 2007 23:16:59 +0000 (23:16 +0000)]
Added the clear flag to host.dmesg, and added host.get_log.  Use these to
implement xm dmesg and xm log using the Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix error logging when we get a 500 response.
Ewan Mellor [Wed, 14 Mar 2007 23:14:19 +0000 (23:14 +0000)]
Fix error logging when we get a 500 response.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImprove the performance of the Xend trace facility, and exclude XendMonitor
Ewan Mellor [Wed, 14 Mar 2007 23:13:37 +0000 (23:13 +0000)]
Improve the performance of the Xend trace facility, and exclude XendMonitor
and XendLogging from those classes that are traced.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTrap bad return values from Xen-API method handlers, and return an internal
Ewan Mellor [Wed, 14 Mar 2007 23:12:59 +0000 (23:12 +0000)]
Trap bad return values from Xen-API method handlers, and return an internal
error.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMatch recent removal of VM.VCPUs_policy.
Ewan Mellor [Wed, 14 Mar 2007 21:59:11 +0000 (21:59 +0000)]
Match recent removal of VM.VCPUs_policy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix typo in xm-test.
Ewan Mellor [Wed, 14 Mar 2007 21:37:00 +0000 (21:37 +0000)]
Fix typo in xm-test.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoFix typo.
Ewan Mellor [Wed, 14 Mar 2007 21:34:43 +0000 (21:34 +0000)]
Fix typo.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoAdded VM_metrics.get_all.
Ewan Mellor [Wed, 14 Mar 2007 21:04:04 +0000 (21:04 +0000)]
Added VM_metrics.get_all.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoAdded Xen-API features needed to implement xm info: host.sched_policy
Ewan Mellor [Wed, 14 Mar 2007 21:02:58 +0000 (21:02 +0000)]
Added Xen-API features needed to implement xm info: host.sched_policy
(replacing VM.VCPUs_policy, which never made sense), and
host.cpu_configuration.  Add other details into either host.software_version
or host.other_config as appropriate.

Implement xm info and the scheduler-detection check using this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoImplement VM_metrics Xen-API class.
Ewan Mellor [Wed, 14 Mar 2007 20:41:56 +0000 (20:41 +0000)]
Implement VM_metrics Xen-API class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded Xen-API support to xm shutdown.
Ewan Mellor [Wed, 14 Mar 2007 20:27:57 +0000 (20:27 +0000)]
Added Xen-API support to xm shutdown.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years ago[BLKTAP] remove spurious error message
Jake Wires [Wed, 14 Mar 2007 21:18:51 +0000 (14:18 -0700)]
[BLKTAP] remove spurious error message
Signed-off-by: Jake Wires <jwires@xensource.com>
19 years agohvm: Firmware build requires dev86 (bcc) >= 0.16.14.
kfraser@localhost.localdomain [Wed, 14 Mar 2007 19:35:26 +0000 (19:35 +0000)]
hvm: Firmware build requires dev86 (bcc) >= 0.16.14.
Earlier versions (at least 0.16.0) generate incorrect code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoImplement VM.{add_to,remove_from}_VCPUs_params.
Ewan Mellor [Tue, 13 Mar 2007 22:13:40 +0000 (22:13 +0000)]
Implement VM.{add_to,remove_from}_VCPUs_params.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoIn xm shell, add a space to the function names when tab-completing.
Ewan Mellor [Tue, 13 Mar 2007 22:12:18 +0000 (22:12 +0000)]
In xm shell, add a space to the function names when tab-completing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[LINUX] 32on64 kdump: Allow a 32 bit kernel to read a 64 bit dump.
Ian Campbell [Wed, 14 Mar 2007 16:58:30 +0000 (16:58 +0000)]
[LINUX] 32on64 kdump: Allow a 32 bit kernel to read a 64 bit dump.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Kexec: Ensure that pages allocated for kexec have MFNs which are within
Ian Campbell [Wed, 14 Mar 2007 16:39:32 +0000 (16:39 +0000)]
[LINUX] Kexec: Ensure that pages allocated for kexec have MFNs which are within
the required limits.

Previously we were lucky since most dom0 pages would be low enough but now Xen
is more aggressive in giving out higher MFNs when it can.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] 32on64 kexec: Make the compat page table cover the first 4G of physical memory.
Ian Campbell [Wed, 14 Mar 2007 16:36:04 +0000 (16:36 +0000)]
[XEN] 32on64 kexec: Make the compat page table cover the first 4G of physical memory.

This gives the guest kernel more flexibility on where it places the control page.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEND] Mark save record fd close-on-exec after calling xc_restore
Tim Deegan [Wed, 14 Mar 2007 12:49:40 +0000 (12:49 +0000)]
[XEND] Mark save record fd close-on-exec after calling xc_restore
so that qemu doesn't end up with an open fd on it
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agohvm: Add a revision 1 FADT in ACPI, and link the original revision-4
kfraser@localhost.localdomain [Wed, 14 Mar 2007 11:38:26 +0000 (11:38 +0000)]
hvm: Add a revision 1 FADT in ACPI, and link the original revision-4
FADT only to XSDT. It avoids a buffer overflow in the initialization
of Window 2000 ACPI HAL (pre ACPI 2.0 OS), and thus enables the
installation and boot. This compatibility practice is also used in
hardware, please refer to:
 http://www.acpi.info/presentations/S01USMOBS169_OS%20new.ppt

Signed-off-by: Qing He <qing.he@intel.com>
19 years agohvm: Print bad DFR value for vlapic if a bad value is detected.
kfraser@localhost.localdomain [Wed, 14 Mar 2007 11:22:59 +0000 (11:22 +0000)]
hvm: Print bad DFR value for vlapic if a bad value is detected.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAMD HVM: Fix enter-realmode stub to initialise 32-bit GPRs.
kfraser@localhost.localdomain [Wed, 14 Mar 2007 11:09:13 +0000 (11:09 +0000)]
AMD HVM: Fix enter-realmode stub to initialise 32-bit GPRs.

This fixes booting Ubuntu live ISO, which assumes the upper half of
%esp is zero on entry.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoadd usb device save/restore in qemu
Tim Deegan [Wed, 14 Mar 2007 10:44:56 +0000 (10:44 +0000)]
add usb device save/restore in qemu

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
19 years ago[HVM] Save/restore: more state propagation in xend
Tim Deegan [Tue, 13 Mar 2007 15:55:37 +0000 (15:55 +0000)]
[HVM] Save/restore: more state propagation in xend
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxm: Allow vcpu-pin to specify 'all' for CPU list.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 14:56:03 +0000 (14:56 +0000)]
xm: Allow vcpu-pin to specify 'all' for CPU list.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoxen/x86: Tweak #PF handler. Simplify gdbstub copy to/from guest.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 14:04:31 +0000 (14:04 +0000)]
xen/x86: Tweak #PF handler. Simplify gdbstub copy to/from guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: No need to force pcibios_scan_all_fns() on modern Xen.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 13:28:26 +0000 (13:28 +0000)]
linux: No need to force pcibios_scan_all_fns() on modern Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvmloader: Avoid compile warnings char vs. unsigned char.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 10:32:52 +0000 (10:32 +0000)]
hvmloader: Avoid compile warnings char vs. unsigned char.
Avoid 'magic number' hardcoded string lengths.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUpdate defconfigs for new XEN_COMPAT_300004 option.
Ian Campbell [Tue, 13 Mar 2007 10:02:45 +0000 (10:02 +0000)]
Update defconfigs for new XEN_COMPAT_300004 option.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XM-TEST] vTPM test changes
kfraser@localhost.localdomain [Tue, 13 Mar 2007 09:52:51 +0000 (09:52 +0000)]
[XM-TEST] vTPM test changes

Remove an uninitialized variable.
For some reason the 'ps aux' command does not see the process anymore
(since some time on the weekend). Need to add 'COLUMNS=n'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agodocs: update some todo items.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 09:52:11 +0000 (09:52 +0000)]
docs: update some todo items.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[LINUX] Fix typo so 3.0.4 compatability works.
Ian Campbell [Tue, 13 Mar 2007 09:07:55 +0000 (09:07 +0000)]
[LINUX] Fix typo so 3.0.4 compatability works.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM] Save/restore: update HVM detection in save/restore code in xend.
Tim Deegan [Mon, 12 Mar 2007 18:04:04 +0000 (18:04 +0000)]
[HVM] Save/restore: update HVM detection in save/restore code in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Adjust memory allocation condition in netback to reduce memory
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:55:02 +0000 (14:55 +0000)]
linux: Adjust memory allocation condition in netback to reduce memory
pressure on Xen and avoid unnecessarily stalling receives.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen: Generic linear pagetable support for x86 PV guests.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:52:11 +0000 (14:52 +0000)]
xen: Generic linear pagetable support for x86 PV guests.
Any linear mapping is permitted, except for L3-PAE-maps-L3-PAE,
which makes no sense even on native.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: PAE linear page tables.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:47:00 +0000 (14:47 +0000)]
x86: PAE linear page tables.

While full linear page table support makes little sense (and would be
more complicated to implement), partial linear page table support is
almost identical to that in non-PAE, and is used (at least) by NetWare.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: No need to manually bring VCPUs online across 'fast' save/restore.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:11:43 +0000 (14:11 +0000)]
linux: No need to manually bring VCPUs online across 'fast' save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Set VGCF_online flag appropriately for getvcpucontext.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:11:07 +0000 (14:11 +0000)]
xen: Set VGCF_online flag appropriately for getvcpucontext.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Add VGCF_onlien flag to vcpu_guest_context.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 13:53:43 +0000 (13:53 +0000)]
x86: Add VGCF_onlien flag to vcpu_guest_context.
Change common Xen code to start all VCPUs (except idle ones)
offline. Change arch code to deal with this.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAMD HVM: Exit hvmloader via a normal jump-to-realmode code sequence.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:15:56 +0000 (11:15 +0000)]
AMD HVM: Exit hvmloader via a normal jump-to-realmode code sequence.
Strip out all SVM-special hypercall code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoThe Xen console intercepts ^O and prevents it from propagating
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:04:34 +0000 (11:04 +0000)]
The Xen console intercepts ^O and prevents it from propagating
through to the guest.  However, ^O is a useful key in bash and in
Emacs.  This patch changes the console to pass a single ^O
through to the guest when it is pressed twice.

Signed-off-by: Ben Pfaff <blp@cs.stanford.edu>
19 years agoFix valid_phys_addr_range() prototype of xen /dev/mem.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:03:07 +0000 (11:03 +0000)]
Fix valid_phys_addr_range() prototype of xen /dev/mem.
The second argument is size_t, not size_t *.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoxen: Fix emulator to use default segment SS for ESP/EBP references.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 11:00:44 +0000 (11:00 +0000)]
xen: Fix emulator to use default segment SS for ESP/EBP references.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Remove debugging printout of BIOS boot vector
Tim Deegan [Mon, 12 Mar 2007 10:10:42 +0000 (10:10 +0000)]
[HVM] Remove debugging printout of BIOS boot vector
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Speed up bulk p2m operations such as domain creation
Tim Deegan [Mon, 12 Mar 2007 09:44:34 +0000 (09:44 +0000)]
[HVM] Speed up bulk p2m operations such as domain creation
by not flushing the shadows more often than is needed.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoFix typo in cset 14341:0affe03ee985 that broke migration.
Ewan Mellor [Sun, 11 Mar 2007 22:42:22 +0000 (22:42 +0000)]
Fix typo in cset 14341:0affe03ee985 that broke migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded an VM_HVM_REQUIRED error code, and use it on VM.start.
Ewan Mellor [Sat, 10 Mar 2007 23:22:00 +0000 (23:22 +0000)]
Added an VM_HVM_REQUIRED error code, and use it on VM.start.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
Ewan Mellor [Sat, 10 Mar 2007 21:48:22 +0000 (21:48 +0000)]
Replace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
a single VM.platform String -> String Map.

Propogate this change through to XendDomainInfo and image so that the
backwards compatibility is handled by XendConfig.

Make PCI_bus a read-write field.

Added C bindings for these changes also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove obsolete tpm_backend entry.
Ewan Mellor [Sat, 10 Mar 2007 21:43:07 +0000 (21:43 +0000)]
Remove obsolete tpm_backend entry.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix VM.set_actions_after_{reboot,shutdown}.
Ewan Mellor [Sat, 10 Mar 2007 21:41:58 +0000 (21:41 +0000)]
Fix VM.set_actions_after_{reboot,shutdown}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix "no such domain" error message from domain_lookup.
Ewan Mellor [Sat, 10 Mar 2007 20:20:24 +0000 (20:20 +0000)]
Fix "no such domain" error message from domain_lookup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove some excessive debug logging.
Ewan Mellor [Sat, 10 Mar 2007 20:18:17 +0000 (20:18 +0000)]
Remove some excessive debug logging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDon't show the usage message for "domain does not exist" errors.
Ewan Mellor [Sat, 10 Mar 2007 19:57:35 +0000 (19:57 +0000)]
Don't show the usage message for "domain does not exist" errors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImprove xm shell tab completion.
Ewan Mellor [Sat, 10 Mar 2007 16:38:18 +0000 (16:38 +0000)]
Improve xm shell tab completion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd vcpus_max and vcpus_at_startup values to the example VM creation.
Ewan Mellor [Sat, 10 Mar 2007 14:57:11 +0000 (14:57 +0000)]
Add vcpus_max and vcpus_at_startup values to the example VM creation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix get_val_as_string so that it does not truncate integers.
Ewan Mellor [Sat, 10 Mar 2007 14:41:06 +0000 (14:41 +0000)]
Fix get_val_as_string so that it does not truncate integers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllow empty structs to represent empty Maps.
Ewan Mellor [Sat, 10 Mar 2007 14:16:52 +0000 (14:16 +0000)]
Allow empty structs to represent empty Maps.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoxen ppc: Guests need the default 100Hz ticker.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 17:38:54 +0000 (17:38 +0000)]
xen ppc: Guests need the default 100Hz ticker.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agopci back: Various fixes.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 17:01:21 +0000 (17:01 +0000)]
pci back: Various fixes.

- remove superfluous call to pciback_field_is_dup()
- fix a variable type mismatch in pciback_field_is_dup()
- make readability improvements by using the OFFSET macro
- revises quirk data output via the sysfs quirks node so that
- displayed offset information includes base_offset.

Thanks to Jambunathan K. for giving such specific bug diagnosis.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
19 years agoSimple fix to the man page for xm block-attach.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:59:57 +0000 (16:59 +0000)]
Simple fix to the man page for xm block-attach.

It currently says to use "ro" or "rw" for the mode, when it seems,
empirically, to take "r" or "w" for the mode, respectively.  Update
the man page to reflect that.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
19 years agoAdd flags field to VCPUOP_set_singlsehot_timer.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:58:11 +0000 (16:58 +0000)]
Add flags field to VCPUOP_set_singlsehot_timer.
Flag 'future' causes Xen to check if the timeout is in the past and
return -ETIME if so.
From: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Fix VCPUOP_set_periodic_timer return value.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:22:52 +0000 (16:22 +0000)]
xen: Fix VCPUOP_set_periodic_timer return value.
Clean up vcpu_op() code, and fix a couple of comments.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Use new time hypercalls.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:36:24 +0000 (19:36 +0000)]
linux: Use new time hypercalls.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Debug 'q' key prints per-vcpu periodic timer info.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:34:52 +0000 (19:34 +0000)]
xen: Debug 'q' key prints per-vcpu periodic timer info.
Do not enable periodic timer by default for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: fix build warnings
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:33:43 +0000 (19:33 +0000)]
linux: fix build warnings
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agodump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:33:36 +0000 (18:33 +0000)]
dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn't specified and may be random in theory.
But sorted array is requested by crash utility for efficient search.

Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoxen/x86: add allocation success checks.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:32:20 +0000 (18:32 +0000)]
xen/x86: add allocation success checks.

The necessary fix to arch_domain_create() was discovered by Gerd
Hoffmann, but apparently not submitted so far.

Also, adjust two error codes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: fix condition for entering tickless state
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:30:52 +0000 (18:30 +0000)]
linux: fix condition for entering tickless state

I noticed that timer interrupts were running at full rate regardless
of whether the system was idle.
softlockup_get_next_event() must return the maximum of zero and the
delta to the next event, not the minimum (which is always zero or
negative, yielding zero or a very large positive number as return
value).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen: New vcpu_op commands for setting periodic and single-shot timers.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:47 +0000 (18:26 +0000)]
xen: New vcpu_op commands for setting periodic and single-shot timers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRevert 14316 -- no need to fix maxvcpu domctl.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:22 +0000 (18:26 +0000)]
Revert 14316 -- no need to fix maxvcpu domctl.

19 years agoThis patch fixes two problems with sending and receiving of (arrays of)
Ewan Mellor [Fri, 9 Mar 2007 16:04:19 +0000 (16:04 +0000)]
This patch fixes two problems with sending and receiving of (arrays of)
structures.

The first one allows to determine the size of a member when parsing a
'set'.
The cast in the second part fixes the address calculation when
serializing an array.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Fix 14315
Tim Deegan [Fri, 9 Mar 2007 12:28:37 +0000 (12:28 +0000)]
[XEN] Fix 14315
We do need to be able to shadow_enable vcpu-less domains.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't let the tools take away all of a domain's vcpus.
Tim Deegan [Fri, 9 Mar 2007 12:16:21 +0000 (12:16 +0000)]
[XEN] Don't let the tools take away all of a domain's vcpus.
Signed-off-by: Weidong Han <weidong.han@intel.com>
19 years ago[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Tim Deegan [Fri, 9 Mar 2007 12:10:29 +0000 (12:10 +0000)]
[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Signed-off-by: Tim Deegan <Tim.Deegan@xensourc.com>
19 years agoMerge
Tim Deegan [Fri, 9 Mar 2007 11:45:49 +0000 (11:45 +0000)]
Merge

19 years ago[SVM] Don't free HSA and root vmcb when disabling SVM
Tim Deegan [Fri, 9 Mar 2007 11:45:19 +0000 (11:45 +0000)]
[SVM] Don't free HSA and root vmcb when disabling SVM
since we're no longer allowed to free pages in an interrupt context.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Upgrade to latest Xen interface version (0x00030205).
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:44:31 +0000 (11:44 +0000)]
linux: Upgrade to latest Xen interface version (0x00030205).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Fri, 9 Mar 2007 11:14:03 +0000 (11:14 +0000)]
Merge

19 years agoxm: New command 'debug-keys' to inject debug-key events into Xen.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:11:59 +0000 (11:11 +0000)]
xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Revert thinko from 14291
Tim Deegan [Fri, 9 Mar 2007 11:11:23 +0000 (11:11 +0000)]
[HVM] Revert thinko from 14291
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agopci back: Fix registration of of filters on subsections of config space.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 09:21:31 +0000 (09:21 +0000)]
pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMake the VTPM.destroy method return 'void' upon success and adapt the
Ewan Mellor [Fri, 9 Mar 2007 02:32:52 +0000 (02:32 +0000)]
Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoImprove error message.
Ewan Mellor [Fri, 9 Mar 2007 01:59:59 +0000 (01:59 +0000)]
Improve error message.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoRemove VDI.set_SR -- this was always unimplemented, and pretty mad.
Ewan Mellor [Fri, 9 Mar 2007 01:25:43 +0000 (01:25 +0000)]
Remove VDI.set_SR -- this was always unimplemented, and pretty mad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFancy headings.
Ewan Mellor [Fri, 9 Mar 2007 01:15:07 +0000 (01:15 +0000)]
Fancy headings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the booting description out of the VM class description into the VM
Ewan Mellor [Fri, 9 Mar 2007 01:06:11 +0000 (01:06 +0000)]
Move the booting description out of the VM class description into the VM
Lifecycle section of the doc.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the word "Additional" from all the RPC subheadings -- we include all
Ewan Mellor [Fri, 9 Mar 2007 00:46:50 +0000 (00:46 +0000)]
Remove the word "Additional" from all the RPC subheadings -- we include all
the methods now, not just the non-accessors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded section on references vs UUIDs.
Ewan Mellor [Fri, 9 Mar 2007 00:44:10 +0000 (00:44 +0000)]
Added section on references vs UUIDs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoChanged the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
Ewan Mellor [Fri, 9 Mar 2007 00:35:29 +0000 (00:35 +0000)]
Changed the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
VIFs rather than VM and VMGroups, now that we've deleted VMGroups.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Ewan Mellor [Thu, 8 Mar 2007 23:47:24 +0000 (23:47 +0000)]
Added {VIF,VBD}.{plug,unplug} methods.  Docs and C bindings -- Xend to follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VM_BAD_POWER_STATE error code to VM.hard_shutdown.
Ewan Mellor [Thu, 8 Mar 2007 23:22:56 +0000 (23:22 +0000)]
Added VM_BAD_POWER_STATE error code to VM.hard_shutdown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>